DataHandler.JSONDataHandler
Represents a JSON file on disk along with its parsed data.
Fields:
Constructor:
csharp
PariahJSON(string fileName, string filePath, JObject data)
Initializes a new instance with the given file name, file path, and JSON data.
Creates a new .json file containing the provided default data.
Loads and parses an existing .json file into a PariahJSON struct.
Encrypts and adds a new data field to the in-memory JSON.
Removes a property from the in-memory JSON.
Replaces an existing JSON property with new encrypted data.
Retrieves and decrypts a previously added JSON property.
Checks whether a given property exists and is a string.
Serializes and writes the in-memory JSON back to its original file location.